package com.managertrade.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class LeveragesResponseDTO {

    private String code;
    private String msg;
    private List<LeverageData> data;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class LeverageData {
        private String ccy;        // 保证金币种（可能为空）
        private String instId;     // 产品ID，比如 CORE-USDT-SWAP
        private String lever;      // 最大杠杆（字符串形式）
        private String mgnMode;    // isolated / cross
        private String posSide;    // net / long / short
    }
}